<include file="Public/header" /> 

<!--主窗体-->
<div class="container app">
	<!--左侧菜单-->
	<include file="Public/sidebar" /> 
	<!--左侧菜单//-->
	
	<!-- mainCon -->
	<div id="mainCon" class="mainCon">
		<h4>会员升级支付流水</h4>
		<div>
		<form class="form-inline" method="get">
			<div class="form-group form-group-sm">
				<label for="username">会员名称：</label>
				<input type="text" class="form-control" id="username" name="username" placeholder="会员名称" value="<{$username}>">
			</div>
			
			<div class="form-group form-group-sm">
				<label for="flow">支付流水号：</label>
				<input type="text" class="form-control" id="flow" name="flow" placeholder="支付流水号" value="<{$flow}>">
			</div>
			<div class="bk10"></div>
			<div class="form-group form-group-sm">
				<label for="">支付时间：</label>
				<input type="text" class="form-control laydate-icon" id="start_time" name="start_time"  value="<{$start_time?($start_time|date='Y-m-d H:i:s',###):''}>" >
				<span>-</span>
				<input type="text" class="form-control laydate-icon" id="end_time" name="end_time"  value="<{$end_time?($end_time|date='Y-m-d H:i:s',###):''}>" >
			</div>
			
			<div class="form-group form-group-sm">
				<label for="pay_type">支付类型：</label>
				<select id="pay_type" name="pay_type" class="form-control">
					<option value="" <if condition="$pay_type === ''"></if>>全部</option>
					<option value="1" <if condition="$pay_type eq 1"></if>>微支付</option>
					<option value="2" <if condition="$pay_type eq 2"></if>>支付宝</option>
				</select>
			</div>

			<a class="btn btn-default btn-sm" href="<{:U(null,$_GET)}>?excel=1" > 会员信息导出</a>
			<button type="submit" class="btn btn-default btn-sm">搜索</button>
		</form>
		</div>

		<div class="bk10"></div>
		<table class="table table-bordered table-hover">
			<tr>
				<th>编号</th>
				<th>会员名称</th>
				<th>支付类型</th>
				<th>上一次会员期限</th>
				<th>支付金额(元)</th>
				<th>支付时间</th>
				<th>支付流水号</th>
				<th>备注</th>
			</tr>

			<empty name="list">
				<tr><td colspan="7" style="text-align:center;color:#999">～暂无数据～</td></tr>
			<else /> 
				<foreach name="list" item="vo">
					<tr>
						<td><{$vo['id']}></td>
						<td><{$vo['username']}></td>
						<td><if condition="$vo['pay_type'] == 1">微支付<elseif condition="$vo['pay_type'] == 2"/>支付宝</if></td>
						<td><if condition="$vo['previous_time'] eq 0">免费会员<else/><{$vo['previous_time']|date="Y-m-d H:i",###}></if></td>
						<td><{$vo['pay_amount']}></td>
						<td><{$vo['pay_time']|date="Y-m-d H:i",###}></td>
						<td><{$vo['pay_flow']}></td>
						<td>
							升级为：<{$vo['level_name']}>
						</td>
					</tr>
				</foreach>
			</empty>
		</table>
		
		<div class="pagebar">
			<{$pager}>
		</div>
		
	</div>
	<!-- mainCon// -->
	
</div>
<!--主窗体//-->

<script src="__PUBLIC__/js/layer/layer.js"></script>
<script>
$(function(){

	var start = {
		elem: '#start_time',
		format: 'YYYY/MM/DD hh:mm:ss',
		istime: true,
		istoday: false,
		choose: function(datas){
			 end.min = datas;
			 end.start = datas;
		}
	};
	var end = {
		elem: '#end_time',
		format: 'YYYY/MM/DD hh:mm:ss',
		istime: true,
		istoday: false,
		choose: function(datas){
			start.max = datas;
		}
	};
	laydate(start);
	laydate(end);
	
});
</script>

<include file="Public/footer" /> 